package com.example.carrent.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.CreationTimestamp;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class UserOrders {

    private Integer orderId;
    private String orderIds; //订单id集合
    private String orderNumber; //订单号
    private Integer userId;
    private Integer courseId;
    private Double paymentAmount;//支付金额
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderDate;
    private String paymentStatus;
    @CreationTimestamp
    private String createName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    private String amendName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date amendTime;
    private String notes; //备注
    /** 持有用户对象*/
//    private Users users;
//    /** 持有课程对象*/
//    private Courses courses;
//    private CoursesVO coursesVo;
    /** 用来条件查询 使用用户名查询该用户的所有订单*/
    private  String username;

    private String courseIds; // 课程id集合
    private String paymentAmounts; // 课程价格字符串集合，以逗号分隔


}
